home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / mint / mint96sb.zoo / src / purec / puremint.txt < prev   
Encoding:
Text File  |  1992-10-19  |  2.0 KB  |  54 lines

  1. How to compile MiNT 0.96 with PureC
  2. -----------------------------------
  3.  
  4. Julian F. Reschke, 19. Oktober 1992
  5. email: julian@math.uni-muenster.de
  6.  
  7.  
  8. (1) Special files
  9.  
  10. First of all, you need a special osbind.h. This is because Pure's own 
  11. version differs in some small details from the GCC header files. You 
  12. can't use Pure's tos.h, either, because in its latest versions it already 
  13. defines some of MiNT's data structures. You can either leave osbind.h in 
  14. the MiNT source directory, or copy it to your PureC include folder. If you 
  15. are using the MiNT library, all should work fine without this file.
  16.  
  17. This is all what's needed. You can either use the command line versions 
  18. of PureC, or you can use the PureC shell. I am compiling MiNT with GNU 
  19. make (latest version at atari.archive.umich.edu should work fine) and a 
  20. self-made 'cc' command, that I've specially written for the PureC command 
  21. line versions (see makefile.pcc). This tool is still being tested, and 
  22. I've not yet decided how to distribute it. If you are interested, write to 
  23. me.
  24.  
  25. If you're going to use the PureC shell, you'll have to 'manually' 
  26. translate the .spp files to the PASM syntax using asmtrans.ttp. The 
  27. syntax is
  28.  
  29. asmtrans -purec -o outfile.s outfile.spp
  30.  
  31. genmagic.ttp is needed to create the file magic.i, which in turn is 
  32. included by the .spp files.
  33.  
  34.  
  35. (2) Things to do
  36.  
  37. So far, I've made no attempt to translate asmtrans with PureC. Try it 
  38. yourself (you'll need alloca; might work with the MiNT library version 
  39. for PureC) or compile them with gcc.
  40.  
  41.  
  42. (3) Caveats
  43.  
  44. This is a preliminary 'port'. It seems to work fine on my machine, but 
  45. this guarantees nothing:
  46.  
  47. There's still a conflict in the way PureC saves registers with what MiNT 
  48. file system drivers or device drivers expect. That's why minix.xfs will 
  49. bomb. There are two solutions: change it in the kernel, or change PureC. 
  50. Both are being currently considered. Note that the same problem will 
  51. arise if you try to write drivers with PureC.
  52.  
  53.  
  54.